# -- coding: utf-8 --

import sys
import time

# if len(sys.argv) !=4:
#     print("no")
#     sys.exit(0)
#
# left = sys.argv[1]
# operator = sys.argv[2]
# right = sys.argv[3]
#
# if operator == '-':
#     subtra =  int(left) - int(right)
#     print(subtra)
# elif operator == '+':
#     add = int(left) + int(right)
#     print(add)
# elif operator == '*':
#     multiplication = int(left) * int(right)
#     print(multiplication)
# elif operator == '/':
#     division = int(left) / int(right)
#     print(division)

n = 1 * 100
generator = (i for i in range(n))
for item in generator:
    text = "Downloading %d%%" % item
    sys.stdout.write(text)
    sys.stdout.write('\r')
    time.sleep(1)


